package com.neugh.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.neugh.entity.Comm;
import com.neugh.mapper.CommMapper;
import com.neugh.service.CommService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author sot
 * @since 2020-05-15
 */
@Service
public class CommServiceImpl extends ServiceImpl<CommMapper, Comm> implements CommService {

    @Override
    public List<Comm> selectAllComm() {
        return this.baseMapper.selectAllComm();
    }

    @Override
    public boolean insertComm(String commContent, String commImg) {
        return this.baseMapper.insertComm(commContent,commImg);
    }
}
